package com.top.mall.jetpack.ma

import com.top.mall.app.BaseApplication
import com.top.mall.base.BaseManager
import com.top.mall.entity.*
import rxhttp.RxHttp
import rxhttp.await

class HomeManager : BaseManager() {

    /**
     * 首页数据
     * */
    suspend fun homeIndex(): HomeIndexResponse =
        RxHttp.get("/api/index/index")
            .add("warehouse_no", BaseApplication.WAREHOUSE_NO)
            .await()
}